package com.tarena.lbs.business.rpc;

import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.business.api.BusinessApi;
import com.tarena.lbs.business.api.pojo.BusinessDto;
import com.tarena.lbs.business.servcie.BusinessService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
public class BusinessApiImpl implements BusinessApi {
    @Resource
     private BusinessService businessService;
    @Override
    public BusinessDto getBusinessById(Integer businessId) throws BusinessException, BusinessException {
        return businessService.getBusinessById(businessId);
    }
}
